package ex;
/*税率taxrate，保险safe*/
import java.util.Scanner;

public class h9 {
    public static void main(String[] args) {
        Scanner salary = new Scanner(System.in);
        System.out.print("输入你的工资: ");
        double x = salary.nextDouble();
        double y = x - ( x * (0.08+0.02+0.01+0.005+0.01+0.12) + 3);

        if (0<y && y<=5000) {
            System.out.println("你的工资为：" + y);
        }else if(5000<y &&y<=8000) {
           double a =y -(y-5000)*0.03;
            System.out.println("你的工资为：" + a);
        }else if(8000<y &&y<=17000) {
            double a =y -(y-5000)*0.1;
            System.out.println("你的工资为：" + a);
        }else if(17000<y &&y<=30000) {
            double a =y -(y-5000)*0.2;
            System.out.println("你的工资为：" + a);
        }else if(30000<y &&y<=40000) {
            double a =y -(y-5000)*0.25;
            System.out.println("你的工资为：" + a);
        }else if(40000<y &&y<=60000) {
            double a =y -(y-5000)*0.3;
            System.out.println("你的工资为：" + a);
        }else if(60000<y &&y<=85000) {
            double a =y -(y-5000)*0.35;
            System.out.println("你的工资为：" + a);
        }else if(y>85000) {
            double a =y -(y-5000)*0.45;
            System.out.println("你的工资为：" + a);
        }



    }
}















